﻿package mortal.game.view.combinedServer.command
{
    import Framework.MQ.*;
    import Message.Command.*;
    import Message.Game.*;
    import Message.Public.*;
    import mortal.game.cache.*;
    import mortal.game.mvc.*;
    import mortal.game.net.broadCast.*;
    import mortal.mvc.core.*;

    public class CombinedSerRechargeCommand extends BroadCastCall
    {

        public function CombinedSerRechargeCommand(param1:Object)
        {
            super(param1);
            return;
        }// end function

        override public function call(param1:MessageBlock) : void
        {
            var _loc_4:SMergeRechargeActiveRewardInfo = null;
            var _loc_5:SMergeInfoMsg = null;
            var _loc_6:SMergeRechargeReturnCashInfo = null;
            var _loc_2:* = param1.messageHead.command;
            var _loc_3:* = param1.messageBase;
            switch(_loc_2)
            {
                case EGateCommand._ECmdGateMergeRechargeActiveReward:
                {
                    _loc_4 = param1.messageBase as SMergeRechargeActiveRewardInfo;
                    Cache.instance.combinedSer.rechargeInfo = _loc_4;
                    NetDispatcher.dispatchCmd(ServerCommand.CombinedSerRechargeInfo, null);
                    break;
                }
                case EPublicCommand._ECmdPublicMergeInfo:
                {
                    _loc_5 = param1.messageBase as SMergeInfoMsg;
                    Cache.instance.combinedSer.openInfo = _loc_5;
                    NetDispatcher.dispatchCmd(ServerCommand.CombinedSerOpenInfo, null);
                    break;
                }
                case EGateCommand._ECmdGateMergeRechargeReturnCash:
                {
                    _loc_6 = param1.messageBase as SMergeRechargeReturnCashInfo;
                    Cache.instance.combinedSer.recharge1000Info = _loc_6;
                    NetDispatcher.dispatchCmd(ServerCommand.CombinedSerRecharge1000Info, null);
                    break;
                }
                default:
                {
                    break;
                }
            }
            return;
        }// end function

    }
}
